		<ul>
	
		<?php foreach ( $photoAlbum as $photo ) { ?>
		
			<li id="photo-<?= $photo['id'] ?>" class="draggablePhoto">
				<a href="<?= $photo['path'] .'.html' ?>">
					<img src="/Thumbs/<?= $photo['id'] ?>-small.jpg" alt="<?= $photo['name'] ?>" title="<?= $photo['name'] ?>" />
				</a>
				
				<div class="photoName">
					<?= wrapString($photo['name'], 25) ?>
				</div>
	
			<?php if ($hasWritePermission) { ?>
				
				<div class="photo-controls">
					
					<a href="#" onClick="if ( mustClick() ) showRenamePhotoForm(<?= $photo['id'] ?>); return false;"><?= getTerm('albums', 'rename') ?></a>
					|
					<a href="/Scripts/AlbumController.php?ac=deletePhoto&id=<?= $photo['id'] ?>" onClick="return mustClick() && confirm('<?= getTerm('albums', 'confirm_delete_photo') ?>');"><?= getTerm('albums', 'delete_photo') ?></a>
				</div>
				
			<?php } ?>
				
			</li>
		
		<?php } ?>
		
		</ul>